﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestClass
{
    /// <summary>
    /// テストする対象１
    /// </summary>
    public class Calculator
    {
        public Calculator()
        {
        }

        public int Add(int val1, int val2)
        {
            return val1 + val2;
        }

        public int Sub(int val1, int val2)
        {
            return val1 - val2;
        }

        public int Multi(int val1, int val2)
        {
            return val1 * val2;
        }

        public int Div(int val1, int val2)
        {
            return val1 / val2;
        }
    }

    /// <summary>
    /// テストする対象２
    /// </summary>
    public class StringUtil
    {
        public StringUtil()
        {
        }

        public string Concat(string val1, string val2)
        {
            return val1 + "_" + val2;
        }

        public string Sub(string val1, string val2)
        {
            var idx = val1.IndexOf(val2);
            if (idx == -1)
                return val1;
            var subStr = val1.Substring(idx);
            return subStr;
        }
    }
}
